import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  { path: '/', redirect: '/recommend' },
  { path: '/recommend', component: () => import('@/views/recommend.vue') },
  { path: '/singer', component: () => import('@/views/singer.vue') },
  { path: '/top-list', component: () => import('@/views/top-list.vue') },
  { path: '/search', component: () => import('@/views/search.vue') },
  { path: '/user', component: () => import('@/views/user-center.vue') }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
